package br.com.lazyprogrammer.worldsoccermanager.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;

import java.util.ArrayList;
import java.util.List;

import br.com.lazyprogrammer.worldsoccermanager.adapter.interfaces.OnMenuItemClickListener;
import br.com.lazyprogrammer.worldsoccermanager.model.MenuItem;

/**
 * Created by Andre on 29/08/2014.
 */
public class MenuAdapter extends BaseAdapter {

    private LayoutInflater inflater;
    private List<MenuItem> items = new ArrayList<MenuItem>();
    private OnMenuItemClickListener listener;

    public MenuAdapter(Context context, OnMenuItemClickListener listener) {
        inflater = LayoutInflater.from(context);
        this.listener = listener;
    }

    @Override
    public int getCount() {
        return items.size();
    }

    @Override
    public MenuItem getItem(int position) {
        return items.get(position);
    }

    @Override
    public long getItemId(int position) {
        return position;
    }

    @Override
    public View getView(int position, View view, ViewGroup viewGroup) {
        return null;
    }

    class ViewHolder {
        ImageView iconMenu;
        TextView labelMenu;
    }
}
